package com.wisewin.circle.dao;

import com.wisewin.circle.entity.db.ActivitySignDO;
import com.wisewin.circle.entity.dto.ActivitySignUserDTO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

@Component
public interface ActivitySignDAO {

    public void insert(@Param("obj") ActivitySignDO activitySignDO);

    public ActivitySignDO queryActivitySignById(Integer activityId, Integer userId);

    // 查询活动报名信息
    public List<ActivitySignUserDTO> queryActivitySignUser(Integer activityId);

    public int queryActivitySignCount(Map<String, Object> map);

    public List<ActivitySignUserDTO> queryActivitySignList(Map<String, Object> map);

    public void delete(Integer activityId, Integer userId);
}
